<%@ page language="java" import="java.util.*,javabean.data.User" pageEncoding="utf-8"%>
<html>
  <head>   
    <title>JavaBean的第二种调用</title>
  </head>  
  <body>
  	<jsp:useBean id="u1" class="javabean.data.User" scope="page"></jsp:useBean>
  	<%
  		u1.setUsername("李四");
  		u1.setPassword("321");
  	 %>
  	 <p>姓名：<%=u1.getUsername()%></p>
   	 <p>密码：<%=u1.getPassword()%></p> 
  </body>
</html>



